﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;

namespace game
{
    public class Shader
    {
        protected String effectFilename;
        protected String effectTechName;

        public Effect Effect { get; protected set; }
        public EffectTechnique EffectTech { get; protected set; }

        public Shader()
        {
            effectFilename = "default";
            effectTechName = "default";
        }

        public virtual void Initialize()
        {
            Effect = ShooterGame.Instance.Content.Load<Effect>(effectFilename).Clone(ShooterGame.Instance.GraphicsDevice);
            EffectTech = Effect.Techniques[effectTechName];
            Effect.CurrentTechnique = EffectTech;
        }
    }
}
